<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>复古风陶瓷花瓶 - 社交精选</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome 图标 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    
    <style>
        :root {
            --primary: #4f46e5;
            --primary-light: #6366f1;
            --primary-dark: #4338ca;
            --secondary: #ec4899;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --text-primary: #111827;
            --text-secondary: #6b7280;
            --text-light: #9ca3af;
            --bg-light: #f9fafb;
            --bg-white: #ffffff;
            --border-light: #e5e7eb;
            --border-medium: #d1d5db;
            --radius: 10px;
            --shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: var(--bg-light);
            color: var(--text-primary);
            padding-bottom: 60px;
            line-height: 1.5;
        }
        
        /* 顶部导航 */
        .top-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 45px;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 15px;
            z-index: 1000;
            color: white;
        }
        
        .nav-back {
            font-size: 1.2rem;
        }
        
        .nav-actions {
            display: flex;
            gap: 15px;
            font-size: 1.1rem;
        }
        
        /* 商品图片轮播 */
        .product-gallery {
            position: relative;
            height: 100vh;
            overflow: hidden;
        }
        
        .gallery-slider {
            height: 100%;
        }
        
        .gallery-slide {
            height: 100%;
            display: none;
        }
        
        .gallery-slide.active {
            display: block;
        }
        
        .gallery-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .gallery-indicators {
            position: absolute;
            bottom: 15px;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            gap: 6px;
        }
        
        .gallery-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.5);
        }
        
        .gallery-dot.active {
            background-color: white;
            width: 24px;
            border-radius: 4px;
        }
        
        .gallery-count {
            position: absolute;
            top: 15px;
            right: 15px;
            background-color: rgba(0, 0, 0, 0.5);
            color: white;
            font-size: 0.8rem;
            padding: 3px 8px;
            border-radius: 12px;
        }
        
        /* 商品信息容器 */
        .product-container {
            margin-top: -30px;
            background-color: var(--bg-white);
            border-top-left-radius: var(--radius);
            border-top-right-radius: var(--radius);
            padding: 20px 15px 15px;
            position: relative;
        }
        
        /* 商品标题与价格 */
        .product-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 10px;
            line-height: 1.3;
        }
        
        .product-price-container {
            display: flex;
            align-items: baseline;
            gap: 10px;
            margin-bottom: 15px;
        }
        
        .product-price {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--secondary);
        }
        
        .product-original-price {
            font-size: 0.9rem;
            color: var(--text-light);
            text-decoration: line-through;
        }
        
        .product-discount {
            font-size: 0.8rem;
            background-color: rgba(236, 72, 153, 0.1);
            color: var(--secondary);
            padding: 2px 6px;
            border-radius: 4px;
        }
        
        /* 商品标签 */
        .product-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 15px;
        }
        
        .product-tag {
            font-size: 0.8rem;
            padding: 3px 10px;
            border-radius: 12px;
            background-color: var(--bg-light);
            color: var(--text-secondary);
        }
        
        .product-tag.hot {
            background-color: rgba(239, 68, 68, 0.1);
            color: var(--danger);
        }
        
        /* 卖家信息 */
        .seller-info {
            display: flex;
            align-items: center;
            padding: 15px 0;
            border-top: 1px solid var(--border-light);
            border-bottom: 1px solid var(--border-light);
            margin-bottom: 15px;
        }
        
        .seller-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            overflow: hidden;
            margin-right: 10px;
        }
        
        .seller-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .seller-details {
            flex: 1;
        }
        
        .seller-name {
            font-weight: 500;
            margin-bottom: 2px;
        }
        
        .seller-rating {
            display: flex;
            align-items: center;
            font-size: 0.8rem;
            color: var(--text-light);
        }
        
        .seller-rating i {
            color: var(--warning);
            margin-right: 3px;
        }
        
        .follow-seller {
            padding: 6px 15px;
            border: 1px solid var(--primary);
            color: var(--primary);
            border-radius: 20px;
            font-size: 0.85rem;
            background: none;
        }
        
        .follow-seller.following {
            background-color: var(--primary);
            color: white;
        }
        
        /* 商品属性选择 */
        .product-attributes {
            margin-bottom: 20px;
        }
        
        .attribute-title {
            font-weight: 500;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
        }
        
        .attribute-required {
            color: var(--danger);
        }
        
        .attribute-options {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 15px;
        }
        
        .attribute-option {
            padding: 8px 15px;
            border: 1px solid var(--border-medium);
            border-radius: 6px;
            font-size: 0.9rem;
            cursor: pointer;
        }
        
        .attribute-option.selected {
            border-color: var(--primary);
            color: var(--primary);
            background-color: rgba(79, 70, 229, 0.05);
        }
        
        .attribute-option.disabled {
            color: var(--text-light);
            background-color: var(--bg-light);
            cursor: not-allowed;
        }
        
        /* 商品详情 */
        .product-details {
            margin-bottom: 20px;
        }
        
        .section-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border-light);
        }
        
        .detail-content img {
            width: 100%;
            display: block;
            margin-bottom: 10px;
        }
        
        .detail-content p {
            margin-bottom: 10px;
            line-height: 1.6;
        }
        
        /* 商品数据 */
        .product-stats {
            display: flex;
            justify-content: space-around;
            padding: 15px 0;
            border-top: 1px solid var(--border-light);
            border-bottom: 1px solid var(--border-light);
            margin-bottom: 20px;
        }
        
        .stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .stat-value {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 5px;
        }
        
        .stat-label {
            font-size: 0.8rem;
            color: var(--text-light);
        }
        
        /* 操作按钮 */
        .action-buttons {
            display: flex;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60px;
            background-color: var(--bg-white);
            border-top: 1px solid var(--border-light);
            z-index: 900;
        }
        
        .action-btn {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            color: var(--text-secondary);
            border: none;
            background: none;
        }
        
        .action-btn i {
            font-size: 1.1rem;
            margin-bottom: 3px;
        }
        
        .action-btn.primary {
            flex: 2;
            background-color: var(--primary);
            color: white;
            font-size: 0.9rem;
            font-weight: 500;
        }
        
        .action-btn.primary i {
            display: none;
        }
        
        .action-btn.secondary {
            flex: 2;
            background-color: var(--secondary);
            color: white;
            font-size: 0.9rem;
            font-weight: 500;
        }
        
        .action-btn.secondary i {
            display: none;
        }
        
        .action-btn.liked i {
            color: var(--danger);
        }
        
        /* 评价与留言区 */
        .reviews-section {
            margin-bottom: 80px;
        }
        
        .reviews-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .reviews-average {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .average-score {
            font-size: 2rem;
            font-weight: 700;
            color: var(--text-primary);
        }
        
        .score-details {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        
        .stars {
            color: var(--warning);
        }
        
        .score-distribution {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 0.8rem;
        }
        
        .score-bar {
            flex: 1;
            height: 6px;
            background-color: var(--bg-light);
            border-radius: 3px;
            overflow: hidden;
        }
        
        .score-fill {
            height: 100%;
            background-color: var(--warning);
        }
        
        .reviews-tabs {
            display: flex;
            border-bottom: 1px solid var(--border-light);
            margin-bottom: 15px;
        }
        
        .reviews-tab {
            padding: 10px 15px;
            font-size: 0.9rem;
            font-weight: 500;
            color: var(--text-secondary);
            border-bottom: 2px solid transparent;
        }
        
        .reviews-tab.active {
            color: var(--primary);
            border-bottom-color: var(--primary);
        }
        
        /* 留言输入框 */
        .comment-input-container {
            display: flex;
            gap: 10px;
            padding: 10px 15px;
            background-color: var(--bg-white);
            border-top: 1px solid var(--border-light);
            margin-bottom: 15px;
        }
        
        .user-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            overflow: hidden;
            flex-shrink: 0;
        }
        
        .user-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .comment-input {
            flex: 1;
            position: relative;
        }
        
        .comment-input textarea {
            width: 100%;
            padding: 10px 15px;
            border: 1px solid var(--border-light);
            border-radius: 20px;
            resize: none;
            height: 40px;
            font-size: 0.9rem;
            transition: all 0.2s;
        }
        
        .comment-input textarea:focus {
            outline: none;
            border-color: var(--primary);
            height: 80px;
        }
        
        .comment-actions {
            position: absolute;
            right: 10px;
            bottom: 10px;
            display: flex;
            gap: 10px;
            color: var(--text-secondary);
        }
        
        .send-comment {
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: 15px;
            padding: 3px 12px;
            font-size: 0.85rem;
        }
        
        /* 留言列表 */
        .comments-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .comment-item {
            display: flex;
            gap: 10px;
        }
        
        .comment-content {
            flex: 1;
        }
        
        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
        }
        
        .comment-author {
            font-weight: 500;
            font-size: 0.9rem;
        }
        
        .comment-time {
            font-size: 0.8rem;
            color: var(--text-light);
        }
        
        .comment-text {
            font-size: 0.9rem;
            margin-bottom: 8px;
        }
        
        .comment-actions {
            display: flex;
            gap: 15px;
            font-size: 0.85rem;
            color: var(--text-secondary);
        }
        
        .comment-action {
            display: flex;
            align-items: center;
            gap: 3px;
            cursor: pointer;
        }
        
        .comment-action.liked {
            color: var(--danger);
        }
        
        /* 回复列表 */
        .replies-list {
            margin-left: 46px;
            margin-top: 10px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .reply-item {
            background-color: var(--bg-light);
            padding: 8px 12px;
            border-radius: 8px;
        }
        
        .reply-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 3px;
        }
        
        .reply-author {
            font-weight: 500;
            font-size: 0.85rem;
        }
        
        .reply-time {
            font-size: 0.75rem;
            color: var(--text-light);
        }
        
        .reply-text {
            font-size: 0.85rem;
        }
        
        .reply-text .at {
            color: var(--primary);
            font-weight: 500;
        }
        
        /* 展开/收起回复 */
        .toggle-replies {
            font-size: 0.8rem;
            color: var(--primary);
            margin-left: 46px;
            margin-top: 5px;
            cursor: pointer;
        }
        
        /* 相关推荐 */
        .related-products {
            margin-bottom: 80px;
        }
        
        .related-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }
        
        .related-product {
            display: flex;
            flex-direction: column;
        }
        
        .related-image {
            aspect-ratio: 1/1;
            border-radius: 6px;
            overflow: hidden;
            margin-bottom: 5px;
        }
        
        .related-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .related-title {
            font-size: 0.8rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 3px;
        }
        
        .related-price {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--secondary);
        }
        
        /* 弹窗样式 */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 2000;
            display: none;
            justify-content: center;
            align-items: center;
        }
        
        .modal-overlay.show {
            display: flex;
        }
        
        .modal {
            background-color: var(--bg-white);
            border-radius: var(--radius);
            width: 90%;
            max-width: 400px;
            max-height: 80vh;
            overflow-y: auto;
            transform: translateY(20px);
            opacity: 0;
            transition: all 0.3s;
        }
        
        .modal-overlay.show .modal {
            transform: translateY(0);
            opacity: 1;
        }
        
        .modal-header {
            padding: 15px;
            border-bottom: 1px solid var(--border-light);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .modal-title {
            font-size: 1.1rem;
            font-weight: 600;
        }
        
        .close-modal {
            background: none;
            border: none;
            font-size: 1.2rem;
            color: var(--text-secondary);
        }
        
        .modal-body {
            padding: 15px;
        }
        
        .modal-footer {
            padding: 15px;
            border-top: 1px solid var(--border-light);
            display: flex;
            gap: 10px;
        }
        
        .modal-btn {
            flex: 1;
            padding: 10px;
            border-radius: 6px;
            font-size: 0.9rem;
            font-weight: 500;
        }
        
        .modal-btn.cancel {
            background-color: var(--bg-light);
            border: none;
            color: var(--text-secondary);
        }
        
        .modal-btn.confirm {
            background-color: var(--primary);
            border: none;
            color: white;
        }
    </style>
</head>
<body>
    <!-- 顶部导航 -->
    <div class="top-nav">
        <div class="nav-back" id="navBack">
            <i class="fas fa-arrow-left"></i>
        </div>
        <div class="nav-title">商品详情</div>
        <div class="nav-actions">
            <i class="far fa-share-alt"></i>
            <i class="far fa-bookmark"></i>
        </div>
    </div>
    
    <!-- 商品图片轮播 -->
    <div class="product-gallery">
        <div class="gallery-slider">
            <div class="gallery-slide active">
                <img src="https://picsum.photos/id/26/800/1200" alt="商品图片1">
            </div>
            <div class="gallery-slide">
                <img src="https://picsum.photos/id/28/800/1200" alt="商品图片2">
            </div>
            <div class="gallery-slide">
                <img src="https://picsum.photos/id/29/800/1200" alt="商品图片3">
            </div>
            <div class="gallery-slide">
                <img src="https://picsum.photos/id/30/800/1200" alt="商品图片4">
            </div>
        </div>
        <div class="gallery-indicators">
            <div class="gallery-dot active"></div>
            <div class="gallery-dot"></div>
            <div class="gallery-dot"></div>
            <div class="gallery-dot"></div>
        </div>
        <div class="gallery-count">1/4</div>
    </div>
    
    <!-- 商品信息容器 -->
    <div class="product-container">
        <!-- 商品标题与价格 -->
        <h1 class="product-title">复古风陶瓷花瓶 家居装饰摆件 北欧简约风格 多尺寸可选</h1>
        
        <div class="product-price-container">
            <div class="product-price">¥89.00</div>
            <div class="product-original-price">¥129.00</div>
            <div class="product-discount">限时7折</div>
        </div>
        
        <!-- 商品标签 -->
        <div class="product-tags">
            <div class="product-tag hot">热销</div>
            <div class="product-tag">家居用品</div>
            <div class="product-tag">北欧风格</div>
            <div class="product-tag">陶瓷材质</div>
            <div class="product-tag">支持退换</div>
        </div>
        
        <!-- 卖家信息 -->
        <div class="seller-info">
            <div class="seller-avatar">
                <img src="https://picsum.photos/id/64/100/100" alt="卖家头像">
            </div>
            <div class="seller-details">
                <div class="seller-name">家居美学</div>
                <div class="seller-rating">
                    <i class="fas fa-star"></i>
                    <span>4.9 (128评价)</span>
                </div>
            </div>
            <button class="follow-seller" id="followSeller">
                <i class="far fa-plus"></i> 关注
            </button>
        </div>
        
        <!-- 商品属性选择 -->
        <div class="product-attributes">
            <div class="attribute-title">
                <span>尺寸 <span class="attribute-required">*</span></span>
            </div>
            <div class="attribute-options">
                <div class="attribute-option selected">小号 (高度15cm)</div>
                <div class="attribute-option">中号 (高度20cm)</div>
                <div class="attribute-option">大号 (高度25cm)</div>
            </div>
            
            <div class="attribute-title">
                <span>颜色 <span class="attribute-required">*</span></span>
            </div>
            <div class="attribute-options">
                <div class="attribute-option selected">米白色</div>
                <div class="attribute-option">浅灰色</div>
                <div class="attribute-option">青蓝色</div>
                <div class="attribute-option disabled">复古红 (缺货)</div>
            </div>
            
            <div class="attribute-title">
                <span>购买数量</span>
            </div>
            <div class="attribute-options">
                <div class="attribute-option selected">1个</div>
                <div class="attribute-option">2个</div>
                <div class="attribute-option">3个</div>
                <div class="attribute-option">5个以上</div>
            </div>
        </div>
        
        <!-- 商品数据 -->
        <div class="product-stats">
            <div class="stat-item">
                <div class="stat-value">128</div>
                <div class="stat-label">已售</div>
            </div>
            <div class="stat-item">
                <div class="stat-value">32</div>
                <div class="stat-label">评论</div>
            </div>
            <div class="stat-item">
                <div class="stat-value">98%</div>
                <div class="stat-label">好评率</div>
            </div>
            <div class="stat-item">
                <div class="stat-value">48h</div>
                <div class="stat-label">发货</div>
            </div>
        </div>
        
        <!-- 商品详情 -->
        <div class="product-details">
            <h2 class="section-title">商品详情</h2>
            <div class="detail-content">
                <p>复古风陶瓷花瓶，采用高温烧制陶瓷材质，表面光滑细腻，质感优良。简约北欧风格设计，适合各种家居装饰风格。</p>
                <img src="https://picsum.photos/id/26/800/600" alt="商品详情图1">
                <p>多种尺寸可选，满足不同摆放需求。可搭配干花、鲜花使用，为您的家居增添一份艺术气息。</p>
                <img src="https://picsum.photos/id/28/800/600" alt="商品详情图2">
                <p>产品特点：</p>
                <p>1. 高温烧制陶瓷，坚固耐用</p>
                <p>2. 手工打磨，手感细腻</p>
                <p>3. 简约设计，百搭风格</p>
                <p>4. 多种尺寸和颜色选择</p>
                <img src="https://picsum.photos/id/29/800/600" alt="商品详情图3">
            </div>
        </div>
        
        <!-- 相关推荐 -->
        <div class="related-products">
            <h2 class="section-title">相关推荐</h2>
            <div class="related-grid">
                <div class="related-product">
                    <div class="related-image">
                        <img src="https://picsum.photos/id/42/300/300" alt="相关商品1">
                    </div>
                    <div class="related-title">简约风陶瓷水杯套装</div>
                    <div class="related-price">¥59.00</div>
                </div>
                <div class="related-product">
                    <div class="related-image">
                        <img src="https://picsum.photos/id/49/300/300" alt="相关商品2">
                    </div>
                    <div class="related-title">手工编织装饰篮</div>
                    <div class="related-price">¥69.00</div>
                </div>
                <div class="related-product">
                    <div class="related-image">
                        <img src="https://picsum.photos/id/52/300/300" alt="相关商品3">
                    </div>
                    <div class="related-title">北欧风格小夜灯</div>
                    <div class="related-price">¥45.00</div>
                </div>
            </div>
        </div>
        
        <!-- 评价与留言区 -->
        <div class="reviews-section">
            <h2 class="section-title">评价与留言</h2>
            
            <div class="reviews-header">
                <div class="reviews-average">
                    <div class="average-score">4.9</div>
                    <div class="score-details">
                        <div class="stars">
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star-half-alt"></i>
                        </div>
                        <div class="score-distribution">
                            <span>5星</span>
                            <div class="score-bar">
                                <div class="score-fill" style="width: 85%;"></div>
                            </div>
                            <span>85%</span>
                        </div>
                        <div class="score-distribution">
                            <span>4星</span>
                            <div class="score-bar">
                                <div class="score-fill" style="width: 13%;"></div>
                            </div>
                            <span>13%</span>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="reviews-tabs">
                <div class="reviews-tab active">全部评价 (32)</div>
                <div class="reviews-tab">有图评价 (24)</div>
                <div class="reviews-tab">好评 (31)</div>
                <div class="reviews-tab">中差评 (1)</div>
            </div>
            
            <!-- 留言输入框 -->
            <div class="comment-input-container">
                <div class="user-avatar">
                    <img src="https://picsum.photos/id/91/100/100" alt="用户头像">
                </div>
                <div class="comment-input">
                    <textarea placeholder="分享你的使用感受或提问..."></textarea>
                    <div class="comment-actions">
                        <i class="far fa-image"></i>
                        <i class="far fa-smile"></i>
                        <button class="send-comment">发送</button>
                    </div>
                </div>
            </div>
            
            <!-- 留言列表 -->
            <div class="comments-list">
                <!-- 留言1 -->
                <div class="comment-item">
                    <div class="user-avatar">
                        <img src="https://picsum.photos/id/64/100/100" alt="用户头像">
                    </div>
                    <div class="comment-content">
                        <div class="comment-header">
                            <div class="comment-author">家居爱好者</div>
                            <div class="comment-time">2023-05-12</div>
                        </div>
                        <div class="comment-text">花瓶质量很好，质感细腻，和我家装修风格很搭，非常满意的一次购物！</div>
                        <div class="comment-actions">
                            <div class="comment-action">
                                <i class="far fa-thumbs-up"></i>
                                <span>24</span>
                            </div>
                            <div class="comment-action">
                                <i class="far fa-comment"></i>
                                <span>回复</span>
                            </div>
                        </div>
                        
                        <!-- 回复列表 -->
                        <div class="replies-list">
                            <div class="reply-item">
                                <div class="reply-header">
                                    <div class="reply-author">家居美学</div>
                                    <div class="reply-time">2023-05-13</div>
                                </div>
                                <div class="reply-text">感谢您的喜爱，我们会继续努力提供更多优质产品~</div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 留言2 -->
                <div class="comment-item">
                    <div class="user-avatar">
                        <img src="https://picsum.photos/id/65/100/100" alt="用户头像">
                    </div>
                    <div class="comment-content">
                        <div class="comment-header">
                            <div class="comment-author">北欧风家居</div>
                            <div class="comment-time">2023-05-10</div>
                        </div>
                        <div class="comment-text">买的中号，大小正合适，放客厅特别好看，朋友来了都问我在哪买的~</div>
                        <div class="comment-actions">
                            <div class="comment-action liked">
                                <i class="fas fa-thumbs-up"></i>
                                <span>18</span>
                            </div>
                            <div class="comment-action">
                                <i class="far fa-comment"></i>
                                <span>回复</span>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 留言3 -->
                <div class="comment-item">
                    <div class="user-avatar">
                        <img src="https://picsum.photos/id/66/100/100" alt="用户头像">
                    </div>
                    <div class="comment-content">
                        <div class="comment-header">
                            <div class="comment-author">爱生活的小A</div>
                            <div class="comment-time">2023-05-08</div>
                        </div>
                        <div class="comment-text">请问这个花瓶容易打碎吗？想给朋友买一个当礼物</div>
                        <div class="comment-actions">
                            <div class="comment-action">
                                <i class="far fa-thumbs-up"></i>
                                <span>5</span>
                            </div>
                            <div class="comment-action">
                                <i class="far fa-comment"></i>
                                <span>回复</span>
                            </div>
                        </div>
                        
                        <!-- 回复列表 -->
                        <div class="replies-list">
                            <div class="reply-item">
                                <div class="reply-header">
                                    <div class="reply-author">家居美学</div>
                                    <div class="reply-time">2023-05-08</div>
                                </div>
                                <div class="reply-text">亲，我们的花瓶采用高温烧制，硬度较高，正常使用不易打碎，而且我们发货会有特别包装，送礼很合适的~</div>
                            </div>
                            <div class="reply-item">
                                <div class="reply-header">
                                    <div class="reply-author">爱生活的小A</div>
                                    <div class="reply-time">2023-05-09</div>
                                </div>
                                <div class="reply-text"><span class="at">@家居美学</span> 好的，谢谢，那我放心购买了</div>
                            </div>
                        </div>
                        
                        <div class="toggle-replies">查看更多3条回复</div>
                    </div>
                </div>
                
                <!-- 留言4 -->
                <div class="comment-item">
                    <div class="user-avatar">
                        <img src="https://picsum.photos/id/67/100/100" alt="用户头像">
                    </div>
                    <div class="comment-content">
                        <div class="comment-header">
                            <div class="comment-author">小花匠</div>
                            <div class="comment-time">2023-05-05</div>
                        </div>
                        <div class="comment-text">颜色有点偏灰，不是我想象中的纯白色，不过质感还是不错的</div>
                        <div class="comment-actions">
                            <div class="comment-action">
                                <i class="far fa-thumbs-up"></i>
                                <span>3</span>
                            </div>
                            <div class="comment-action">
                                <i class="far fa-comment"></i>
                                <span>回复</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 操作按钮 -->
    <div class="action-buttons">
        <button class="action-btn" id="actionLike">
            <i class="far fa-heart"></i>
            <span>喜欢</span>
        </button>
        <button class="action-btn">
            <i class="far fa-share-alt"></i>
            <span>分享</span>
        </button>
        <button class="action-btn">
            <i class="far fa-comment"></i>
            <span>咨询</span>
        </button>
        <button class="action-btn primary">
            <i class="fas fa-shopping-cart"></i>
            <span>加入购物车</span>
        </button>
        <button class="action-btn secondary">
            <i class="fas fa-check"></i>
            <span>立即购买</span>
        </button>
    </div>
    
    <!-- 购买确认弹窗 -->
    <div class="modal-overlay" id="buyModal">
        <div class="modal">
            <div class="modal-header">
                <div class="modal-title">确认购买</div>
                <button class="close-modal" id="closeBuyModal">
                    <i class="fas fa-times"></i>
                </button>
            </div>
            <div class="modal-body">
                <div class="product-title" style="font-size: 1rem;">复古风陶瓷花瓶 家居装饰摆件</div>
                <div class="product-price" style="margin: 10px 0;">¥89.00</div>
                
                <div class="attribute-title">
                    <span>已选</span>
                </div>
                <div style="padding: 10px; background-color: var(--bg-light); border-radius: 6px; margin-bottom: 15px;">
                    尺寸：小号 (高度15cm) / 颜色：米白色 / 数量：1个
                </div>
                
                <div class="attribute-title">
                    <span>配送方式</span>
                </div>
                <div class="attribute-options">
                    <div class="attribute-option selected">快递配送 (¥8.00)</div>
                    <div class="attribute-option">自提 (免费)</div>
                </div>
                
                <div style="margin-top: 20px; display: flex; justify-content: space-between; font-weight: 500;">
                    <span>总计</span>
                    <span style="color: var(--secondary);">¥97.00</span>
                </div>
            </div>
            <div class="modal-footer">
                <button class="modal-btn cancel" id="cancelBuy">取消</button>
                <button class="modal-btn confirm">确认支付</button>
            </div>
        </div>
    </div>
    
    <!-- Bootstrap JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // 图片轮播功能
        const gallerySlides = document.querySelectorAll('.gallery-slide');
        const galleryDots = document.querySelectorAll('.gallery-dot');
        const galleryCount = document.querySelector('.gallery-count');
        let currentSlide = 0;
        
        function showSlide(index) {
            // 隐藏所有幻灯片
            gallerySlides.forEach(slide => slide.classList.remove('active'));
            galleryDots.forEach(dot => dot.classList.remove('active'));
            
            // 显示当前幻灯片
            gallerySlides[index].classList.add('active');
            galleryDots[index].classList.add('active');
            galleryCount.textContent = `${index + 1}/${gallerySlides.length}`;
            
            currentSlide = index;
        }
        
        // 点击指示器切换幻灯片
        galleryDots.forEach((dot, index) => {
            dot.addEventListener('click', () => showSlide(index));
        });
        
        // 滑动切换幻灯片
        let startX = 0;
        const gallerySlider = document.querySelector('.gallery-slider');
        
        gallerySlider.addEventListener('touchstart', (e) => {
            startX = e.touches[0].clientX;
        });
        
        gallerySlider.addEventListener('touchend', (e) => {
            const endX = e.changedTouches[0].clientX;
            const diffX = endX - startX;
            
            // 滑动距离足够大才切换
            if (Math.abs(diffX) > 50) {
                if (diffX > 0) {
                    // 向右滑动，上一张
                    currentSlide = (currentSlide - 1 + gallerySlides.length) % gallerySlides.length;
                } else {
                    // 向左滑动，下一张
                    currentSlide = (currentSlide + 1) % gallerySlides.length;
                }
                showSlide(currentSlide);
            }
        });
        
        // 自动轮播
        let slideInterval = setInterval(() => {
            currentSlide = (currentSlide + 1) % gallerySlides.length;
            showSlide(currentSlide);
        }, 5000);
        
        // 触摸时暂停自动轮播
        gallerySlider.addEventListener('touchstart', () => {
            clearInterval(slideInterval);
        });
        
        // 触摸结束后恢复自动轮播
        gallerySlider.addEventListener('touchend', () => {
            slideInterval = setInterval(() => {
                currentSlide = (currentSlide + 1) % gallerySlides.length;
                showSlide(currentSlide);
            }, 5000);
        });
        
        // 属性选择功能
        const attributeOptions = document.querySelectorAll('.attribute-option:not(.disabled)');
        attributeOptions.forEach(option => {
            option.addEventListener('click', () => {
                // 获取同组的所有选项
                const parent = option.parentElement;
                const siblings = parent.querySelectorAll('.attribute-option');
                
                // 取消同组其他选项的选中状态
                siblings.forEach(sib => sib.classList.remove('selected'));
                
                // 选中当前选项
                option.classList.add('selected');
            });
        });
        
        // 关注卖家功能
        const followSellerBtn = document.getElementById('followSeller');
        followSellerBtn.addEventListener('click', () => {
            const isFollowing = followSellerBtn.classList.contains('following');
            
            if (isFollowing) {
                followSellerBtn.classList.remove('following');
                followSellerBtn.innerHTML = '<i class="far fa-plus"></i> 关注';
            } else {
                followSellerBtn.classList.add('following');
                followSellerBtn.innerHTML = '<i class="fas fa-check"></i> 已关注';
            }
        });
        
        // 喜欢功能
        const likeBtn = document.getElementById('actionLike');
        likeBtn.addEventListener('click', () => {
            likeBtn.classList.toggle('liked');
            const icon = likeBtn.querySelector('i');
            
            if (likeBtn.classList.contains('liked')) {
                icon.classList.remove('far');
                icon.classList.add('fas');
            } else {
                icon.classList.remove('fas');
                icon.classList.add('far');
            }
        });
        
        // 评价标签切换
        const reviewTabs = document.querySelectorAll('.reviews-tab');
        reviewTabs.forEach(tab => {
            tab.addEventListener('click', () => {
                reviewTabs.forEach(t => t.classList.remove('active'));
                tab.classList.add('active');
                // 实际项目中这里会根据选择的标签加载不同的评价内容
            });
        });
        
        // 评论点赞功能
        const commentLikeBtns = document.querySelectorAll('.comment-action');
        commentLikeBtns.forEach(btn => {
            if (btn.querySelector('.fa-thumbs-up')) {
                btn.addEventListener('click', () => {
                    btn.classList.toggle('liked');
                    const icon = btn.querySelector('i');
                    const countElem = btn.querySelector('span');
                    let count = parseInt(countElem.textContent);
                    
                    if (btn.classList.contains('liked')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        count++;
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        count--;
                    }
                    
                    countElem.textContent = count;
                });
            }
        });
        
        // 回复展开/收起
        const toggleRepliesBtns = document.querySelectorAll('.toggle-replies');
        toggleRepliesBtns.forEach(btn => {
            btn.addEventListener('click', () => {
                const currentText = btn.textContent;
                if (currentText.startsWith('查看更多')) {
                    btn.textContent = '收起回复';
                    // 实际项目中这里会展开隐藏的回复
                } else {
                    btn.textContent = '查看更多3条回复';
                    // 实际项目中这里会收起回复
                }
            });
        });
        
        // 购买弹窗控制
        const buyBtn = document.querySelector('.action-btn.secondary');
        const buyModal = document.getElementById('buyModal');
        const closeBuyModal = document.getElementById('closeBuyModal');
        const cancelBuy = document.getElementById('cancelBuy');
        
        function openBuyModal() {
            buyModal.classList.add('show');
            document.body.style.overflow = 'hidden';
        }
        
        function closeBuyModalFunc() {
            buyModal.classList.remove('show');
            document.body.style.overflow = '';
        }
        
        buyBtn.addEventListener('click', openBuyModal);
        closeBuyModal.addEventListener('click', closeBuyModalFunc);
        cancelBuy.addEventListener('click', closeBuyModalFunc);
        
        // 点击弹窗外部关闭
        buyModal.addEventListener('click', (e) => {
            if (e.target === buyModal) {
                closeBuyModalFunc();
            }
        });
        
        // 返回按钮功能
        const navBack = document.getElementById('navBack');
        navBack.addEventListener('click', () => {
            // 实际项目中这里会返回上一页
            history.back();
        });
        
        // 发送评论功能
        const sendCommentBtn = document.querySelector('.send-comment');
        const commentTextarea = document.querySelector('.comment-input textarea');
        
        sendCommentBtn.addEventListener('click', () => {
            const commentText = commentTextarea.value.trim();
            
            if (commentText) {
                // 模拟发送评论成功
                sendCommentBtn.innerHTML = '<i class="fas fa-spinner fa-spin"></i>';
                
                setTimeout(() => {
                    // 清空输入框
                    commentTextarea.value = '';
                    // 恢复按钮状态
                    sendCommentBtn.textContent = '发送';
                    
                    // 实际项目中这里会将评论添加到列表中
                    alert('评论发送成功！');
                }, 800);
            }
        });
    </script>
</body>
</html>
    
